window.onload = function () {
  'use strict';

  var game, ns = window.beneath;

  game = new Phaser.Game(window.document.body.clientWidth, window.document.body.clientHeight, Phaser.AUTO, 'beneath-game');
  game.state.add('boot', ns.Boot);
  game.state.add('preloader', ns.Preloader);
  game.state.add('menu', ns.Menu);
  game.state.add('pregame', ns.Pregame);
  game.state.add('game', ns.Game);
  game.state.add('gameover', ns.GameOver);
  game.state.add('office', ns.Office);
  game.state.add('stats', ns.Stats);

  game.state.start('boot');
};
